home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / dvxtec.zip / DOS2SUN.TEC < prev    next >
Text File  |  1992-03-31  |  5KB  |  132 lines

  1. ID:F0 Porting DOS fonts to the SunOS X Window System
  2. Quarterdeck Technical Note #410
  3. by Kris Williams & Mark Welinder
  4.  
  5. How to Port DOS fonts to the SunOS X Window System
  6.  
  7. This document explains the procedures for porting the DESQview/X DOS
  8. fonts over to your Sun Workstation.  If you are or will be running DOS
  9. applications displayed on your Sun workstation, it would be more
  10. aesthetically correct to use the fixed DOS fonts which where provided
  11. with DESQview/X.
  12.  
  13. To follow the steps covered in this document you will first need to have
  14. installed DESQview/X, and configured your TCP/IP networking software on
  15. both Sun workstation, and the DOS PC.  It is only necessary to copy the
  16. font files to the Sun once.
  17.  
  18. THE PROCEDURE 
  19.  
  20. Is X configured on your Sun workstation?  You will need to determine
  21. whether or not the X Window System is installed on your Sun workstation.
  22. This can be done by checking for the environment variable named
  23. OPENWINHOME.  This can be accomplished with the following command:
  24.  
  25.     # setenv <─┘
  26.  
  27. The OPENWINHOME variable will be set to the parent directory where X and
  28. the OpenLook Window manager are installed.  If the OPENWINHOME variable
  29. is not set, you will need to reference your SunOS X Window System
  30. documentation.
  31.  
  32. The next step is to determine where the fonts directory is located.  By
  33. default it's located in $OPENWINHOME/lib/fonts. You may check to see if
  34. the default directory was used by typing the commands:
  35.  
  36.     # cd $OPENWINHOME/lib <─┘
  37.     # ls fonts <─┘
  38.  
  39. In the first command the path string represented by $OPENWINHOME/lib
  40. will take us to the lib directory of the X Window system parent
  41. subdirectory, and the second command will look for the directory
  42. lib/fonts.  If the directory is there, the second command will simply
  43. echo "fonts" to the screen, and you may used the command:
  44.  
  45.     # cd fonts <─┘
  46.  
  47. Usually, the environment variable FONTDIR will be set to specify the
  48. location of the font files.  If this variable is set you may switch to
  49. the font's directory by typing the following command:
  50.  
  51.     # cd $FONTDIR <─┘
  52.  
  53. Have you installed DESQview/X?  It is necessary to have DESQview/X
  54. installed to the DOS machine, You may determine this by looking in the
  55. \DVX subdirectory for the file DESQVIEW.DVO. If this file exists,
  56. DESQview/X is installed, and you may continue.  If not you will need to
  57. reference you DESQview/X installation guide for instruction.
  58.  
  59. TRANSFERING THE FONT DEFINITION FILES
  60.  
  61. If you haven't yet configured FTP's PCTCP software you'll need to
  62. reference the green PCTCP manual for further instruction. You will need
  63. to switch to the \FTP subdirectory on the DOS machine where the PCTCP
  64. software is configured.  This may be done with the following command:
  65.  
  66.     C:\> cd \ftp <─┘
  67.  
  68. Then we'll use the FTP (File Transfere Protocol) utility to move the
  69. font description files up to the Sun workstation.  This can be done with
  70. the following commands:
  71.  
  72.     C:\FTP> ftp <─┘
  73.     ftp> login: <username> <─┘
  74.     ftp> password: <password> <─┘
  75.     ftp> mput \DVX\BDF\ibm*.bdf <─┘
  76.     ftp> quit <─┘
  77.  
  78. In the above command <username> would be your username on the Sun
  79. workstation, and <password> is the password required for <username> to
  80. successfully log on to the Sun.  After these commands are performed, the
  81. font description files are ready to be converted, aliased, and used by
  82. the X Window System on the Sun.
  83.  
  84. CONVERTING THE FONT DESCRIPTION FILES
  85.  
  86. The DOS font description files need to be converted into the default
  87. X11/NeWS format.  The following commands may be used:
  88.  
  89.     # convertfont ibm8x8.bdf  -d <fontdirectory> 
  90.     # convertfont ibm8x14.bdf -d <fontdirectory>
  91.         # convertfont ibm8x16.bdf -d <fontdirectory>
  92.  
  93. If the FONTDIR environment variable is set, it is used as the default
  94. destination directory signified above by the -d <fontdirectory>
  95. parameter above.  Otherwise, if the OPENWINHOME environment variable is
  96. set, $OPENWINHOME/fonts is used as the default directory, or the current
  97. directory is used.
  98.  
  99. ALIASING THE FONTS
  100.  
  101. In order to give the X Server access to these new fonts, you will need
  102. to alias the fonts, by adding them to the Synonyms.list file, in the
  103. font's directory.  This would be done with the following commands on the
  104. Sun:
  105.  
  106.     # cd $OPENWINHOME/lib/fonts <─┘ 
  107.     # vi Synonyms.list <─┘ 
  108.  
  109.  This will execute the vi editor and open the Synonyms.list file. once
  110. in vi, you will need to perform the following keystrokes to edit the
  111. file correctly:
  112.  
  113.     :$<─┘
  114.     <ESC>o<Down Arrow><ESC>
  115.     /pc8x8          /ibm8x8         -FontDirectorySYN<─┘ 
  116.     /pc8x14         /ibm8x14        -FontDirectorySYN<─┘ 
  117.     /pc8x16         /ibm8x16        -FontDirectorySYN<─┘
  118.     <ESC>ZZ
  119.  
  120. You will now need to modify Families.list file to include the new font
  121. aliasing.  This may be done with the following command:
  122.  
  123.     # bldfamily
  124.  
  125. Then have the X Window System re-read the font database files with the
  126. following command:
  127.  
  128.     # xset fp rehash
  129.  
  130.            Copyright (C) 1991 by Quarterdeck Office Systems 
  131.                * * *    E N D   O F   F I L E    * * *
  132.